You can control which
layer names are listed in the Layer Properties Manager and sort
them by name or by property, such as color or visibility.
A
layer filter limits the display of layer names in the Layer Properties
Manager and in the Layer control on the Layers toolbar. In a large
drawing, you can use layer filters to display only the layers you
need to work with.
There are two kinds of layer filters
- Layer
property filter Includes layers that have names or other
properties in common. For example, you can define a filter that
includes all layers that are red and whose names include the letters mech.
- Layer group filter Includes
the layers that are put into the filter when you define it, regardless
of their names or properties. Selected layers can be added from
the layer list by dragging them to the filter.
The
tree view in the Layer Properties Manager displays default layer
filters and any named filters that you create and save in the current
drawing. The icon next to a layer filter indicates the type of filter.
Five default filters are displayed
- All. Displays
all the layers in the current drawing. (Filter is always displayed.)
- All Used. Displays
all the layers on which objects in the current drawing are drawn.
(Filter is always displayed.)
- Xref. If xrefs
are attached to the drawing, displays all the layers being referenced
from other drawings.
- Viewport Overrides.
If there are layers with overrides for the current viewport, displays
all layers containing property overrides.
- Unreconciled New Layers.
If new layers were added since the drawing was last opened, saved,
reloaded, or plotted, displays a list of new unreconciled layers.
See Reconcile New Layers for
more information.
NoteThe default filters
cannot be renamed, edited, or deleted.
Once you have named and defined a layer filter,
you can select it in the tree view to display the layers in the
list view. You can also apply the filter to the Layers toolbar,
so that the Layer control displays only the layers in the current
filter.
When you select a filter in the tree view and
right-click, options on the shortcut menu can be used to delete,
rename, or modify filters. For example, you can convert a layer
property filter to a layer group filter. You can also change a property
of all layers in a filter. The Isolate Group option turns off all
layers in the drawing that are not in the selected filter.
Define a Layer Property
Filter
A layer property filter is defined
in the Layer Filter Properties dialog box, where you select any
of the following properties you want to include in the filter definition:
- Layer names, colors, linetypes, lineweights,
and plot styles
- Whether layers are in use
- Whether layers are turned on or off
- Whether layers are frozen or thawed in
the active viewport or all viewports
- Whether layers are locked or unlocked
- Whether layers are set to be plotted
You
use wild-card characters to filter layers by name. For example,
if you want to display only layers that start with the letters mech,
you can enter mech*. See “Wild-Card Characters”
for a complete list.
The layers in a layer property filter may change
as the properties of the layers change. For example, if you define
a layer property filter named Site that includes all layers with
the letters site in the name and a CONTINUOUS
linetype, and then you change the linetype of some of those layers,
the layers with the new linetype are no longer part of the Site
filter and are not displayed when you apply that filter.
Layer property filters can be nested under other
properties filters or under group filters.
Define a Layer Group Filter
A layer group filter includes only those layers
that you explicitly assign to it. If the properties of the layers
assigned to the filter change, the layers are still part of the
filter. Layer group filters can be nested only under other layer group
filters.
TipLayers from the layer
list can be included in a filter by clicking and dragging the selected
layers to the filter.
Invert a Layer Filter
You can
also invert a layer filter. For example, if all the site plan information in
a drawing is contained in multiple layers that include the word site as
part of the layer name, you can display all information except site
plan information by first creating a filter definition that filters
layers by name (*site*) and then using the Invert
Filter option.
Sort Layers
Once you have created layers, you can sort them
by name or other properties. In the Layer Properties Manager, click
the column heading to sort layers by the property in that column.
Layer names can be sorted in ascending or descending alphabetical
order.
Wild-Card Characters
You can use wild-card characters to sort layers
by name.
Character
|
Definition
|
# (pound)
|
Matches any numeric digit
|
@ (at)
|
Matches any alphabetic character
|
. (period)
|
Matches any nonalphanumeric character
|
* (asterisk)
|
Matches any string and can be used anywhere
in the search string
|
? (question mark)
|
Matches any single character; for example, ?BC
matches ABC, 3BC, and so on
|
~ (tilde)
|
Matches anything but the pattern; for example; ~*AB*matches
all strings that don't contain AB
|
[ ]
|
Matches any one of the characters enclosed;
for example, [AB]C matches AC and BC
|
[~]
|
Matches any character not enclosed; for example,
[~AB]C matches XC but not AC
|
[-]
|
Specifies a range for a single character; for
example, [A-G]C matches AC, BC, and so on to GC, but not HC
|
` (reverse quote)
|
Reads the next character literally; for example,
`~AB matches ~AB
|
NoteTo filter on a layer
name that contains a wild-card character, precede the character
with a reverse quote (`) so that it is not interpreted as a wild-card
character.
To filter the display of
layer names by selecting layers
To nest a layer filter
under another layer filter
- Click Home tab
Layers
panel
Layer
Properties
- In the Layer Properties Manager tree
view, select a layer filter.
- A new layer property filter can be nested
under a group filter or another property filter.
- A new layer group filter can be nested
only under another group filter.
- Right-click. Click New Properties Filter
or New Group Filter.
- Use one of the following methods:
- For a new property filter, the Layer
Properties Filter dialog box is displayed. Under Filter Definition,
set the layer properties that you want to use to define the filter.
Click OK.
- For a new group filter, a filter is added
to the tree view. Rename it, select the parent filter to display
its layers in the list view, and drag layers from the list view
to the new layer group filter.
- Click OK.
To sort the layer list
in the Layer Properties Manager
To remove a layer from
a layer group filter
- Click Home tab
Layers
panel
Layer
Properties
- In the Layer Properties Manager tree
view, select a group filter.
- Select the layer you want to remove.
- Right-click in the list view. Click Remove
from Group Filter.
CommandsCLASSICLAYER
Opens the legacy Layer
Properties Manager.
LAYER
Manages layers and layer
properties.
LAYERPALETTE
Opens the modeless Layer
Properties Manager.
System VariablesLAYERDLGMODE
Sets the flavor of the
Layer Properties Manager that is defined for the use of the LAYER
command.
MAXSORT
Sets the maximum number
of symbol names or block names sorted by listing commands.